Add `[target.'cfg(...)']` syntax for rustc(doc)flags in .cargo/config
authortee-too <tee-too@users.noreply.github.com>
Mon, 3 Apr 2017 18:35:23 +0000 (20:35 +0200)
committertee-too <tee-too@users.noreply.github.com>
Tue, 4 Apr 2017 15:02:41 +0000 (17:02 +0200)
commite6e6f10e95906d5d01087239984c9c63f63e3bdd
tree18754250a82481cd1eca5bbfa6e9ba593ba566e0
parent305fa6825e0ea131bf110435f8a80ec1095b0c5f
Add `[target.'cfg(...)']` syntax for rustc(doc)flags in .cargo/config

Allow to use the Rust `cfg(...)` syntax to configure rust(doc)flags.
The flags are concatenated when a build matches several `cfg`, or
several `cfg` and a $triple.

Fix #3499.
src/cargo/ops/cargo_rustc/context.rs
src/doc/config.md
tests/rustflags.rs